-- GENERATED SPELL FOR [Gjalerbron Warrior] --


function spell0_23991(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_23991', 30250, 1)
end

function spell1_23991(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23991', 573, 1)
end

function Sorts_23991(pUnit, Event)
local choix_sorts_23991 = math.random(0, 1)
if choix_sorts_23991 == 0 then
pUnit:RegisterEvent('spell0_23991', 1, 1)
end
if choix_sorts_23991 == 1 then
pUnit:RegisterEvent('spell1_23991', 1, 1)
end
end

function mob23991_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23991', math.random(1500, 3000), 1)
end

function mob23991_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23991_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23991_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23991, 1, 'mob23991_Action')
RegisterUnitEvent(23991, 2, 'mob23991_Leave')
RegisterUnitEvent(23991, 3, 'mob23991_Kill')
RegisterUnitEvent(23991, 4, 'mob23991_Die')
